package cn.hanna.springcloudalibaba.service;

import cn.hanna.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.math.BigDecimal;

/**
 * @author smileha
 * @create 2021-10-22 23:16
 * @description
 */
@FeignClient(value = "seata-account-service")
public interface AccountService {

    @PostMapping("/account/decrease/{id}/{money}")
    CommonResult decrease(@PathVariable("id") Long userId,
                          @PathVariable("money") BigDecimal money);
}
